package com.pn.taikao.service;

import com.pn.taikao.entity.Major;

import java.util.List;

public interface MajorService {
    Long createMajor(Major major);

    void updateMajor(Major major);

    void deleteMajor(Long id);

    Major getById(Long id);

    List<Major> getByCollegeId(Long collegeId);

    List<Major> list(String name, Long collegeId, int page, int size);

    long count(String name, Long collegeId);
}













